﻿<UserControl x:Class="AMPLibrary.Controls.MusicMediaInformationControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:local="clr-namespace:AMPLibrary.Controls"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008">
    <Grid Background="Black" Opacity="0.7">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="80" />
            <RowDefinition Height="*" />
            <RowDefinition Height="28" />
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0" VerticalAlignment="Top" Opacity="1.0" Grid.ColumnSpan="2">
            <StackPanel VerticalAlignment="Bottom" Opacity="1.0" Orientation="Horizontal" HorizontalAlignment="Left">
                <Label x:Name="titleLabel" FontSize="22" Foreground="White" FontWeight="Bold" Opacity="1.0" Padding="10" />
                <Label x:Name="artistNameLabel" FontSize="19" Foreground="Wheat" Opacity="1.0" Padding="10" VerticalAlignment="Bottom" />
                <Label x:Name="albumNameLabel" FontSize="16" Foreground="Azure" Opacity="1.0" Padding="10" VerticalAlignment="Bottom" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <ToggleButton Name="toggleDescriptionToggleButton" Height="30" Width="30" Click="toggleDescriptionToggleButton_Click" Template="{StaticResource infoButton}">i</ToggleButton>
                <local:UserMediaRatingControl x:Name="userMediaRating" VerticalAlignment="Center" ToolTip="media rating" />
                <CheckBox Name="isFavoritedCheckBox" Unchecked="isFavoritedCheckBox_Checked" Checked="isFavoritedCheckBox_Checked" Margin="10" />
            </StackPanel>
        </StackPanel>

        <ScrollViewer x:Name="descriptionScrollViewer" Grid.Row="1" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Visible">
            <TextBlock x:Name="descriptionTextBlock" FontSize="12" Foreground="White" Opacity="1.0" Padding="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextWrapping="Wrap" />
        </ScrollViewer>

        <ToggleButton x:Name="getMoreInfoToggleButton" Grid.Row="2" HorizontalAlignment="Right" Template="{StaticResource moreInfoMenuButton}" Click="getMoreInfoToggleButton_Click">get more info</ToggleButton>
    </Grid>
</UserControl>